package routers

import (
	"remote_cmd/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/login", &controllers.LinuxController{}, "post:Login")
	beego.Router("/logout", &controllers.LinuxController{}, "get:Logout")
	beego.Router("/loginAll", &controllers.LinuxController{}, "post:LoginAll")

	beego.Router("/dirs", &controllers.DirController{}, "get:Dirs")
	beego.Router("/dir/change", &controllers.DirController{}, "post:ChangeDir")

	beego.Router("/file", &controllers.FileController{}, "post:File")
	beego.Router("/file/sync", &controllers.FileController{}, "post:SyncFile")
}
